
// Boost Includes ==============================================================
#include <boost/python.hpp>
#include <boost/cstdint.hpp>

// Includes ====================================================================
#include <OpenSG/OSGMatrixCamera.h>
#include <OpenSG/OSGMatrixCameraBase.h>
#include <OpenSG/OSGDrawAction.h>
#include <OpenSG/OSGViewport.h>
#include <OsgPtrHelpers.h>

// Using =======================================================================
using namespace boost::python;

// Declarations ================================================================
namespace  {

BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(osg_MatrixCamera_dump_overloads_0_2, dump, 0, 2)


}// namespace 


// Module ======================================================================
void Export_src_pyste_gen_MatrixCamera()
{
    scope* osg_MatrixCameraBase_scope = new scope(
    class_< osg::MatrixCameraBase, bases< osg::Camera > , boost::noncopyable >("MatrixCameraBase", no_init)
//        .def_readonly("ProjectionMatrixFieldMask", &osg::MatrixCameraBase::ProjectionMatrixFieldMask)
//        .def_readonly("ModelviewMatrixFieldMask", &osg::MatrixCameraBase::ModelviewMatrixFieldMask)
//        .def_readonly("MTInfluenceMask", &osg::MatrixCameraBase::MTInfluenceMask)
        .def("getClassType", &osg::MatrixCameraBase::getClassType, return_internal_reference< 1 >())
        .def("getClassTypeId", &osg::MatrixCameraBase::getClassTypeId)
        .def("getType", (osg::FieldContainerType& (osg::MatrixCameraBase::*)() )&osg::MatrixCameraBase::getType, return_internal_reference< 1 >())
        .def("getType", (const osg::FieldContainerType& (osg::MatrixCameraBase::*)() const)&osg::MatrixCameraBase::getType, return_internal_reference< 1 >())
        .def("getContainerSize", &osg::MatrixCameraBase::getContainerSize)
        //.def("getProjectionMatrix", (osg::Matrix& (osg::MatrixCameraBase::*)() )&osg::MatrixCameraBase::getProjectionMatrix, return_value_policy< copy_const_reference >())
        .def("getProjectionMatrix", (const osg::Matrix& (osg::MatrixCameraBase::*)() const)&osg::MatrixCameraBase::getProjectionMatrix, return_value_policy< copy_const_reference >())
        //.def("getModelviewMatrix", (osg::Matrix& (osg::MatrixCameraBase::*)() )&osg::MatrixCameraBase::getModelviewMatrix, return_value_policy< copy_const_reference >())
        .def("getModelviewMatrix", (const osg::Matrix& (osg::MatrixCameraBase::*)() const)&osg::MatrixCameraBase::getModelviewMatrix, return_value_policy< copy_const_reference >())
        .def("setProjectionMatrix", &osg::MatrixCameraBase::setProjectionMatrix)
        .def("setModelviewMatrix", &osg::MatrixCameraBase::setModelviewMatrix)
        .def("getBinSize", &osg::MatrixCameraBase::getBinSize)
        .def("copyToBin", &osg::MatrixCameraBase::copyToBin)
        .def("copyFromBin", &osg::MatrixCameraBase::copyFromBin)
        .def("create", &osg::MatrixCameraBase::create)
        .def("createEmpty", &osg::MatrixCameraBase::createEmpty)
        .def("shallowCopy", &osg::MatrixCameraBase::shallowCopy)
        .staticmethod("getClassType")
        .staticmethod("create")
        .staticmethod("createEmpty")
        .staticmethod("getClassTypeId")
    );

    scope().attr("ProjectionMatrixFieldId") = (int)osg::MatrixCameraBase::ProjectionMatrixFieldId;
    scope().attr("NextFieldId") = (int)osg::MatrixCameraBase::NextFieldId;
    scope().attr("ModelviewMatrixFieldId") = (int)osg::MatrixCameraBase::ModelviewMatrixFieldId;

    delete osg_MatrixCameraBase_scope;

    class_< osg::MatrixCamera, bases< osg::MatrixCameraBase > , boost::noncopyable, osg::MatrixCameraRefPtr >("MatrixCamera", no_init)
        .def("getClassname", &osg::MatrixCamera::getClassname)
        .def("changed", &osg::MatrixCamera::changed)
        //.def("draw", &osg::MatrixCamera::draw)
        .def("getProjection", &osg::MatrixCamera::getProjection)
        .def("getViewing", &osg::MatrixCamera::getViewing)
        .def("dump", &osg::MatrixCamera::dump, osg_MatrixCamera_dump_overloads_0_2())
        .staticmethod("getClassname")
    ;


    register_ptr_to_python<osg::MatrixCameraPtr>();
    implicitly_convertible<osg::MatrixCameraRefPtr, osg::MatrixCameraPtr>();
    implicitly_convertible<osg::MatrixCameraPtr, osg::CameraPtr>();
    
    def("RefPtr", &pyopensg::ToRefPtr<osg::MatrixCameraPtr>);
    def("FCPtr", &pyopensg::ToFcPtr<osg::MatrixCameraPtr>);
}

